export default [
  {
    path: '/reports',
    meta: { requiresAuth: true },
    children: [
      {
        path: '',
        name: 'ReportsIndex',
        component: () => import('@/views/reports/Index.vue'),
        meta: { title: '报表中心' }
      },
      {
        path: 'sales',
        name: 'SalesReport',
        component: () => import('@/views/reports/SalesReport.vue'),
        meta: { title: '销售报表' }
      },
      {
        path: 'inventory',
        name: 'InventoryReport',
        component: () => import('@/views/reports/InventoryReport.vue'),
        meta: { title: '库存报表' }
      },
      {
        path: 'finance',
        name: 'FinanceReport',
        component: () => import('@/views/reports/FinanceReport.vue'),
        meta: { title: '财务报表' }
      },
      {
        path: 'purchase',
        name: 'PurchaseReport',
        component: () => import('@/views/reports/PurchaseReport.vue'),
        meta: { title: '采购报表' }
      },
      {
        path: 'analysis',
        name: 'ReportsAnalysis',
        component: () => import('@/views/reports/Analysis.vue'),
        meta: { title: '数据对比分析' }
      },
      {
        path: 'bi-dashboard',
        name: 'BIDashboard',
        component: () => import('@/views/reports/BIDashboard.vue'),
        meta: { title: 'BI商业智能' }
      }
    ]
  }
]
